package ace.module.upms.core.impl.service;

import ace.module.common.api.model.input.AppIdListInput;
import ace.module.upms.api.model.dto.UpmsOrganizationDto;
import ace.module.upms.api.model.input.UpmsOrgBindAccountInput;
import java.util.List;
import java.util.Map;

/**
 * .
 * @author caspar
 */
public interface UpmsOrganizationService {

  Map<Long, List<UpmsOrganizationDto>> getAccountIdAndOrgMapByUpmsAppIdAndIamAccountIdIn(Long upmsAppId, List<Long> iamAccountIds);

  List<UpmsOrganizationDto> getByUpmsApIdAndIamAccountId(Long upmsAppId, Long iamAccountId);

  void saveOrgAccountRelation(AppIdListInput<UpmsOrgBindAccountInput> inputs);
}
